﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ApisixSDK.Common.Excetpion
{
    public class ApisixSDKExcetion : System.Exception
    {
		private const long serialVersionUID = 1L;

		private string errorCode;

		public ApisixSDKExcetion(string message) : this(message, "")
		{
		}
		public ApisixSDKExcetion(string message, string errorCode) : base(message)
		{
			this.errorCode = errorCode;
		}

		public virtual string ErrorCode
		{
			get
			{
				return errorCode;
			}
		}

		public override string ToString()
		{
			return "[ApisixSDKExcetion]" + "message:" + this.Message + " errorCode:" + this.ErrorCode;
		}
	}
}
